package com.digdes.calendar.service;

import com.digdes.calendar.gwt.client.dto.EventDTOImpl;
import com.digdes.calendar.model.Event;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * User: Sulo
 * Date: 23.04.12
 * Time: 12:12
 */
public interface EventService {

    public List<EventDTOImpl> getOldEventsByDate(Date date);

    public List<EventDTOImpl> getEventsBetween(Date dStart, Date dFinish);

    public List<EventDTOImpl> getEventsByDate(Date d);

    public void deleteEvent(Long id);

    void saveEvent(EventDTOImpl event);

    public Set<EventDTOImpl> getEventsByPlaceAndDate(Long id, Date start, Date finish);

    public Set<EventDTOImpl> getEventsByUserAndDate(Long id, Date start, Date finish);

}

